/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.mabi.frontend.mock;

import com.mabi.frontend.FrontEndApp;
import com.vaadin.data.Property.ValueChangeEvent;
import com.vaadin.data.Property.ValueChangeListener;
import com.vaadin.ui.CustomLayout;
import com.vaadin.ui.TabSheet;
import com.vaadin.ui.TextField;
import com.vaadin.ui.VerticalLayout;
import com.vaadin.ui.Window;

/**
 *
 * @author User
 */
public class MabiModuleComponent {

    public void renderContributions(Window mainWindow, CustomLayout appMainLayout, TabSheet editorContentTabs, FrontEndApp frontEndApp) {

        //Add contributions to header tools area

        //Add contributions to toolmenu strip

        //Add contributions to menu strip

        //Add contributions to editor area content
        //appMainLayout.addComponent(appMainLayout);
        VerticalLayout vl = new VerticalLayout();

        TextField tf = new TextField("Entre texto aqui");
        tf.setValue("Entre texto");
        tf.setImmediate(true);
        final Window mw = mainWindow;
        tf.addListener(new ValueChangeListener() {

            @Override
            public void valueChange(ValueChangeEvent event) {
                mw.showNotification("dfa");
            }
        });

        vl.addComponent(new TextField("Module contribution"));
        vl.addComponent(tf);
        editorContentTabs.addTab(vl, "Empleados", null);

        //Add contributions to explorer area content

        //Add contributions to palette area content

        //Add contributions to statusbar content
    }
}
